import 'package:hygf/bean/customer_bean.dart';

class TaKanList {
  int? total;
  int? current;
  List<TaKanListItem>? list;

  TaKanList({this.total, this.current, this.list});

  TaKanList.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    current = json['current'];
    if (json['list'] != null) {
      list = <TaKanListItem>[];
      json['list'].forEach((v) {
        list!.add(new TaKanListItem.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = this.total;
    data['current'] = this.current;
    if (this.list != null) {
      data['list'] = this.list!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class TaKanListItem {
  int? id;
  String? customerName;
  String? phoneNumber;
  String? idNumber;
  String? idNumberPositive;
  String? idNumberNegative;
  String? bankCardNumber;
  String? bankName;
  String? buildingAddress;
  String? remarks;
  String? houseTitleCertificate;
  String? gatePhoto;
  String? panoramicPhoto;
  String? other;
  int? auditStatus;
  String? auditBy;
  String? auditByName;
  String? auditDate;
  String? createDate;
  String? updateDate;
  String? createBy;
  String? createByName;
  String? updateBy;
  String? updateByName;

  TaKanListItem({this.id,
    this.customerName,
    this.phoneNumber,
    this.idNumber,
    this.idNumberPositive,
    this.idNumberNegative,
    this.bankCardNumber,
    this.bankName,
    this.buildingAddress,
    this.remarks,
    this.houseTitleCertificate,
    this.gatePhoto,
    this.panoramicPhoto,
    this.other,
    this.auditStatus,
    this.auditBy,
    this.auditByName,
    this.auditDate,
    this.createDate,
    this.updateDate,
    this.createBy,
    this.createByName,
    this.updateBy,
    this.updateByName});

  TaKanListItem.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    customerName = json['customerName'];
    phoneNumber = json['phoneNumber'];
    idNumber = json['idNumber'];
    idNumberPositive = json['idNumberPositive'];
    idNumberNegative = json['idNumberNegative'];
    bankCardNumber = json['bankCardNumber'];
    bankName = json['bankName'];
    buildingAddress = json['buildingAddress'];
    remarks = json['remarks'];
    houseTitleCertificate = json['houseTitleCertificate'];
    gatePhoto = json['gatePhoto'];
    panoramicPhoto = json['panoramicPhoto'];
    other = json['other'];
    auditStatus = json['auditStatus'];
    auditBy = json['auditBy'];
    auditByName = json['auditByName'];
    auditDate = json['auditDate'];
    createDate = json['createDate'];
    updateDate = json['updateDate'];
    createBy = json['createBy'];
    createByName = json['createByName'];
    updateBy = json['updateBy'];
    updateByName = json['updateByName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['customerName'] = this.customerName;
    data['phoneNumber'] = this.phoneNumber;
    data['idNumber'] = this.idNumber;
    data['idNumberPositive'] = this.idNumberPositive;
    data['idNumberNegative'] = this.idNumberNegative;
    data['bankCardNumber'] = this.bankCardNumber;
    data['bankName'] = this.bankName;
    data['buildingAddress'] = this.buildingAddress;
    data['remarks'] = this.remarks;
    data['houseTitleCertificate'] = this.houseTitleCertificate;
    data['gatePhoto'] = this.gatePhoto;
    data['panoramicPhoto'] = this.panoramicPhoto;
    data['other'] = this.other;
    data['auditStatus'] = this.auditStatus;
    data['auditBy'] = this.auditBy;
    data['auditByName'] = this.auditByName;
    data['auditDate'] = this.auditDate;
    data['createDate'] = this.createDate;
    data['updateDate'] = this.updateDate;
    data['createBy'] = this.createBy;
    data['createByName'] = this.createByName;
    data['updateBy'] = this.updateBy;
    data['updateByName'] = this.updateByName;
    return data;
  }
}
